using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace CthulhuDomain.GameEntities
{
  public sealed class Bang : DomainEntity
  {
    public Bang()
    {
      Speed = 0f;
      pos = new Vector2Adapter(0, 0);
      FrameColumns = 1;
      Score = new Score(0);
    }

    public Bang(IVector2 position)
    {
      Speed = 0f;
      pos = position;
      FrameColumns = 1;
      Score = new Score(0);
    }

    private int _height = 35;
    public override int Height
    {
      get { return _height; }
      set { _height = value; }
    }

    private int _width = 35;
    public override int Width
    {
      get { return _width; }
      set { _width = value; }
    }

    public override float Speed { get; set; }

    public override IVector2 Position
    {
      get
      {
        return pos;
      }
      set
      {
        pos = value;
      }
    }

    public override int Damage
    {
      get { return 0; }
    }

    public override void Draw(ISpriteBatch spriteBatch)
    {
      Draw(spriteBatch,new ColorAdapter(Color.White));
    }

    public override void Update(IRectangle context, Services.IGameTime time)
    {
      base.Update(context, time);
      --LifePoint;
    }
  }
}